﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STX.Service.Valid
{
    public class ValidationResult
    {
        public List<String> Errors { get; set; }

        public ValidationResult()
        {
            Errors = new List<string>();
        }

        public bool IsValida
        {
            get { return Errors.IsEmpty(); }
        }

        public string Summry
        {
            get
            {
                if (IsValida) return "";
                return String.Join("\r\n", Errors);
            }
        }
    }
}
